// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App';
import store from './store';

import VModal from 'vue-js-modal';
import newDialog from './components/Common/Dialog';
import ShowDialog from './mix/ShowDialog';
import InitObject from './mix/InitObjectFromObject';
import Delete from './mix/Delete';

Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.use(VModal);
Vue.component('MyDialog', newDialog);
Vue.mixin(ShowDialog);
Vue.mixin(InitObject);
Vue.mixin(Delete);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store: store,
  components: { App },
  template: '<App/>'
})
